package com.hzlx.operations.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzlx.operationParameters.domain.OperationParameters;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;


/**
 * 工序对象 mes_operations
 * 
 * @author ruoyi
 * @date 2025-07-01
 */
public class Operations extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    public List<OperationParameters> getOperationParameters() {
        return operationParameters;
    }

    public void setOperationParameters(List<OperationParameters> operationParameters) {
        this.operationParameters = operationParameters;
    }

    private List<OperationParameters> operationParameters;
    /** 工序ID */
    private Long operationId;

    //工艺路线ID
    @Excel(name = "工艺路线")
    private Integer routeId;

    /** 工序名称 */
    @Excel(name = "工序名称")
    private String operationName;

    /** 工序详细名称给 */
    @Excel(name = "工序详细名称给")
    private String description;

    /** 标准周期时间 */
    @Excel(name = "标准周期时间")
    private BigDecimal standardCycleTime;

    /** 时间单位 */
    @Excel(name = "时间单位")
    private String unitOfTime;

    /** 是否质检点 */
    @Excel(name = "是否质检点")
    private Integer isQaPoint;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setOperationId(Long operationId) 
    {
        this.operationId = operationId;
    }

    public Long getOperationId() 
    {
        return operationId;
    }

    public void setOperationName(String operationName) 
    {
        this.operationName = operationName;
    }

    public String getOperationName() 
    {
        return operationName;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setStandardCycleTime(BigDecimal standardCycleTime) 
    {
        this.standardCycleTime = standardCycleTime;
    }

    public BigDecimal getStandardCycleTime() 
    {
        return standardCycleTime;
    }

    public void setUnitOfTime(String unitOfTime) 
    {
        this.unitOfTime = unitOfTime;
    }

    public String getUnitOfTime() 
    {
        return unitOfTime;
    }

    public void setIsQaPoint(Integer isQaPoint) 
    {
        this.isQaPoint = isQaPoint;
    }

    public Integer getIsQaPoint() 
    {
        return isQaPoint;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public Integer getRouteId() {
        return routeId;
    }

    public void setRouteId(Integer routeId) {
        this.routeId = routeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("operationId", getOperationId())
            .append("operationName", getOperationName())
            .append("description", getDescription())
            .append("standardCycleTime", getStandardCycleTime())
            .append("unitOfTime", getUnitOfTime())
            .append("isQaPoint", getIsQaPoint())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
